package com.liu.backstage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liu.backstage.model.Role;
import com.liu.backstage.model.Users;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 腾杰说
 * @since 2020-07-08
 */
public interface UsersMapper extends BaseMapper<Users> {

    Users findByUsername(String username);

    Users UserById(Integer id);

    List<Role> userrole(Integer id);

    void insertRole(Integer id, String string);
}
